package com.bluedot.bank.action;

import com.bluedot.bank.dao.role.Role;
import com.bluedot.bank.dao.role.RoleDao;
import com.bluedot.bank.dao.role.RoleDaoImpl;
import com.opensymphony.xwork2.ActionSupport;

public class AddRoleAction extends ActionSupport {
	private Role role;

	/**
	 * @return the role
	 */
	public Role getRole() {
		return role;
	}

	/**
	 * @param role the role to set
	 */
	public void setRole(Role role) {
		this.role = role;
	}
	@Override
	public String execute() throws Exception {
		RoleDao roleDao=new RoleDaoImpl();
		roleDao.create(role);
		return super.execute();
	}

}
